import { service } from "../http/index";

//测评
export function startSurvey(data) {
  return service({
    method: "get",
    url: "/employee/startSurvey",
    params: data,
  });
} // 开始答题-获取第一部分题

// 第一部分结果计算
export function partOneCalculation(data) {
  return service({
    method: "post",
    url: "/employee/partOneCalculation",
    data,
  });
}

export function nextPart(data) {
  return service({
    method: "get",
    url: "/employee/nextPart",
    params: data,
  });
} //下一部分

// 除第一部分外的数据提交
export function otherPartAnswerSave(data) {
  return service({
    method: "post",
    url: "/employee/otherPartAnswerSave",
    data,
  });
}

export function checkPHQ9(data) {
  return service({
    method: "get",
    url: "/employee/checkPHQ9",
    params: data,
  });
}

// 获取自评报告
export function getMyReport(data) {
  return service({
    method: "post",
    url: "/employee/getMyReport",
    data,
  });
}
// 测评记录
export function votelogList(data) {
  return service({
    method: "get",
    url: "/employee/votelogList",
    params: data,
  });
}

export function getRecordReport(data) {
  return service({
    method: "get",
    url: "/employee/getRecordReport",
    params: data,
  });
}
